# $Id: Makefile,v 1.3 2006-09-11 07:42:28 nicolasw Exp $

SOURCES= env_test.c env.c ieentry.c rbtree.c yield.c randomize.c
LIBS= -lpthread
CC= gcc
CFLAGS= -Wall -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Werror -g
OBJECTS=$(SOURCES:.c=.o)
TARGET= env_test 

all: $(TARGET)

clean:
	rm -f $(TARGET) $(OBJECTS) .depend massif* mtrace.log

-include .depend

.depend: $(SOURCES) *.h
	gcc -MM $(SOURCES) >.depend

$(TARGET): $(OBJECTS)
	$(CC) -o $@ $^ $(LIBS)
